# 作者: 薛文寅仟
# 2024年12月30日21时12分02秒
# 5443912@qq.com
class A:
    def test(self):
        print('A test')

    def demo(self):
        print('A demo')


class B:
    def test(self):
        print('B test')

    def demo(self):
        print('B demo')


class C(A, B):
    def test(self):
        print('C test')


if __name__ == '__main__':
    c = C()
    c.test()
    # 查找顺序
    # (<class '__main__.C'>, <class '__main__.A'>, <class '__main__.B'>, <class 'object'>)
    print(C.__mro__)
